package com.ftf.tp.blog.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import com.ftf.tp.blog.infrastructure.mapper.pos.ArticlePO;
import com.ftf.tp.blog.infrastructure.mapper.pos.ColumnPO;import com.ftf.tp.blog.infrastructure.mapper.pos.TagPO;import org.apache.ibatis.annotations.Param;

/**
 * @author tanghao
 * @date 2022/8/12
 */
public interface ArticleMapper extends BaseMapper<ArticlePO> {
    int updateBatch(List<ArticlePO> list);

    int batchInsert(@Param("list") List<ArticlePO> list);

    void articleTagAdd(Long id, List<TagPO> tagPOList);

    void articleColumnAdd(ArticlePO article, List<ColumnPO> columnPOList);

    TagPO selectByTagName(String temp);

    void insertTag(List<TagPO> tagsBoxValue);

    List<Long> getIdListRand();

    List<Long> getTagId(Long blogId);

    List<Long> getColumnId(Long blogId);
}